package com.neusoft.di.entity.common;

public enum ResultCode {
    SUCCESS(200, "Operation successful"),
    THE_ACCESSED_PATH_DOES_NOT_EXIST(404, "The accessed path does not exist"),
    FAILED(500, "Operation failed"),
    VALIDATE_FAILED(404, "Validation failed"),
    UNAUTHORIZED(401, "Unauthorized"),
    FORBIDDEN(403, "Forbidden");

    private final int code;
    private final String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
